package com.ruoyi.mall.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员地址对象 mall_address
 * 
 * @author ruoyi
 * @date 2020-05-16
 */
public class MallAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收货地址Id */
    private Long addressId;

    /** 收货人 */
    @Excel(name = "收货人")
    private String receiver;

    /** 收货人联系方式 */
    @Excel(name = "收货人联系方式")
    private String receiverPhone;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区 */
    @Excel(name = "区")
    private String area;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String street;

    /** 性别 */
    @Excel(name = "性别")
    private Long sex;

    /** 会员id */
    @Excel(name = "会员id")
    private Long membersId;

    private MallMembers mallMembers;

    public MallMembers getMallMembers() {
        return mallMembers;
    }

    public void setMallMembers(MallMembers mallMembers) {
        this.mallMembers = mallMembers;
    }

    public void setAddressId(Long addressId)
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }
    public void setReceiver(String receiver) 
    {
        this.receiver = receiver;
    }

    public String getReceiver() 
    {
        return receiver;
    }
    public void setReceiverPhone(String receiverPhone) 
    {
        this.receiverPhone = receiverPhone;
    }

    public String getReceiverPhone() 
    {
        return receiverPhone;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }
    public void setStreet(String street) 
    {
        this.street = street;
    }

    public String getStreet() 
    {
        return street;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setMembersId(Long membersId) 
    {
        this.membersId = membersId;
    }

    public Long getMembersId() 
    {
        return membersId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("addressId", getAddressId())
            .append("receiver", getReceiver())
            .append("receiverPhone", getReceiverPhone())
            .append("province", getProvince())
            .append("city", getCity())
            .append("area", getArea())
            .append("street", getStreet())
            .append("sex", getSex())
            .append("membersId", getMembersId())
            .toString();
    }
}
